Page({
    data: {
    },
    onLoad: function (options) {
        var page = this,
            state = options.state;
        page.setData({
            state: state
        })
        if (state == 2){
            var consultant_sn = wx.getStorageSync("consultant_sn");
            page.setData({
                consultant_sn: consultant_sn
            })
        }
        wx.setNavigationBarTitle({
            title: "卖酒码绑定"
        })
    },
    
    /**
     * @description 去首页
     * @method toIndex
     * @returns void
     *
     */
    toIndex() {
        wx.switchTab({
            url: '/pages/index/index',
        })
    },
    onPullDownRefresh: function () {
        wx.stopPullDownRefresh()
    },
})